package lu.med.praxiswahl.wahlumed.client.patienten;

import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

/**
 * 
 * @author Lars Holger Roth
 */
class ChangeListenerVersichertMutter implements ChangeListener
{

    private PatientenPanel owner;

    public ChangeListenerVersichertMutter(PatientenPanel owner)
    {
	this.owner = owner;
    }

    public void stateChanged(ChangeEvent e)
    {
	if (owner.getVersichert(2))
	{
	    owner.setVersichert(0, false);
	    owner.setVersichert(1, false);
	}
    }
}